package com.hmall.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.search.pojo.Item;
import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.PageDTO;
import com.hmall.search.pojo.RequestParams;

import java.util.List;
import java.util.Map;

public interface HmallService extends IService<Item> {
    PageDTO<ItemDoc> searchAll(RequestParams params);
    Map<String, List<String>> getFilters(RequestParams params);
    List<String> getSuggestions(String key);
    void deleteById(Long id);

    void insertById(Long id);
}
